package com.property.mapper;

import com.property.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@Mapper
public interface UserMapper {
    //根据用户名查询管理员
    User findUserByName(String username);
    //查询所有用户
    List<User> findAllUser();
    //停用
    int stopUser(Integer uId);
    //启动
    int startUser(Integer uId);
    //新增用户
    int addUser(User user);
    //删除用户
    int deleteUserByuId(Integer uId);
    //通过id查询用户
    User findByuId(Integer uId);
    //修改用户
    int updateUser(User user);
}
